process Lot Based Txn
fun processLotBasedTxn(acctTxns: TxnSet?, split: SplitTxn, secCurr: CurrencyType?, unrealizedAsOfDate: Int, result: Hashtable<String, AvailableSharesTracker>)
Process a transaction for a security that uses lot-based cost. For buys, the shares bought are added to the resulting available shares. For sales, the shares sold are removed from the respective lots, as they are no longer available. If a split had occurred, the available shares are adjusted accordingly.
Parameters
acct Txns
The transactions for the account.
split
The transaction to process.
sec Curr
The security currency.
unrealized As Of Date
The date prior to which to get the unused/available lots.
result
A map of transaction ID to number of shares available. This is an in, out parameter as the map is modified by this method. The available shares will be correct as of the date of split